import { defineStore } from 'pinia'

export const tabbarStore = defineStore('tabbarStore', {
    state: () => ({
        currentIndex: -1,
    }),

    actions: {
        setCurrentIndex(index) {
            console.log("setCurrentIndex", index)
            this.currentIndex = index
        },
    }
})
